package com.lyun.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lyun.typeHandler.VarcharToStringListlTypeHandler;
import lombok.Data;
import org.apache.ibatis.type.BigIntegerTypeHandler;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.List;

@Data
public class MovementsVo implements Serializable {
    //@TableField(typeHandler = LongToStringTypeHandler.class)
    private String id;
    private Long userId;
    private String avatar;
    private String nickname;
    private String gender;
    private Integer age;
    private String textContent;
    @TableField(value = "tags", typeHandler = VarcharToStringListlTypeHandler.class, jdbcType = JdbcType.VARCHAR)
    private List<String> tags;
    @TableField(value = "image_content", typeHandler = VarcharToStringListlTypeHandler.class, jdbcType = JdbcType.VARCHAR)
    private List<String> imageContent;
    //距离 "1.2公里"
    private String distance;
    //创建日期  "10分钟前"
    private String createDate;
    //点赞数
    private Integer likeCount;
    //评论数
    private Integer commentCount;
    //喜欢数
    private Integer loveCount;
    //是否点赞
    private Integer hasLiked;
    //是否喜欢
    private Integer hasLoved;
}
